import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import reportWebVitals from './reportWebVitals'


let time = new Date().toLocaleDateString()
const str = '当前时间是: '

let element = (
  <div>
    <h1>helloworld</h1>
    <h2>{str + time}</h2>
  </div>
)

const man = '不发热'
const element3 = (
  <div>
    <h1>不发热</h1>
    <h2>lalallaa</h2>
  </div>
)
let element2 = (
  <div>
    <h1>今天是否隔离</h1>
    <h2>{man === '发热' ? <button>隔离</button> : element3}</h2>
  </div>
)
const color = 'bkRed'
const logo = 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png'
let element4 = (
  <div>
    <h1 className='bkRed'>111</h1>
    <img src={logo} alt="百度图片"/>
  </div>
)
ReactDOM.render(
  element4,
  document.getElementById('root')
)

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals()
